

import {request} from "../../utils/request"
import type {searchClassResponseType} from "../../modal/user";


//查询菜单
export let FindMenu= (params:object)=>{
	return request.postRequest("SchoolSys/menu/findMenu",params)
}

//班级列表	SchoolSys/clazz/select
export let ClassList= (params:object)=>{
	return request.postRequest("SchoolSys/clazz/select",params)
}

//班级添加	SchoolSys/clazz/insert
export let InsertClass= (params:object)=>{
	return request.postRequest("SchoolSys/clazz/insert",params)
}

//班级删除	SchoolSys/clazz/delete
export let DeleteClass= (params:object)=>{
	return request.postRequest("SchoolSys/clazz/delete",params)
}

//班级搜索	SchoolSys/clazz/like
export let SearchClass= (params:object)=>{
	return request.postRequest<searchClassResponseType>("SchoolSys/clazz/like",params)
}

//教师列表	SchoolSys/teaList
export let TeacherList= (params:object)=>{
	return request.postRequest("SchoolSys/teaList",params)
}

//班级修改	SchoolSys/clazz/update
export let UpdateClass= (params:object)=>{
	return request.postRequest("SchoolSys/clazz/update",params)
}

//班级详情	SchoolSys/clazz/clazzid
export let ClassDetail= (params:object)=>{
	return request.postRequest("SchoolSys/clazz/clazzid",params)
}

//调班	SchoolSys/clazz/shifts
export let ChangeClass= (params:object)=>{
	return request.postRequest("SchoolSys/clazz/shifts",params)
}

//调班旁的添加	SchoolSys/clazz/shiftsadd
export let ShiftAdd= (params:object)=>{
	return request.postRequest("SchoolSys/clazz/shiftsadd",params)
}


//学生删除	SchoolSys/stu/delete
export let StudentDelete= (params:object)=>{
	return request.postRequest("SchoolSys/stu/delete",params)
}

//学生添加	SchoolSys/stu/insert
export let StudentInsert= (params:object)=>{
	return request.postRequest("SchoolSys/stu/insert",params)
}

//学生详情	SchoolSys/stu/selectid
export let StudentDetail= (params:object)=>{
	return request.postRequest("SchoolSys/stu/selectid",params)
}

//学生搜索	SchoolSys/stu/like
export let SearchStudent= (params:object)=>{
	return request.postRequest("SchoolSys/stu/like",params)
}

//学生修改	SchoolSys/stu/update
export let UpdateStudent= (params:object)=>{
	return request.postRequest("SchoolSys/stu/update",params)
}

//学生显示	SchoolSys/stu/select
export let StudentShowList= (params:object)=>{
	return request.postRequest("SchoolSys/stu/select",params)
}


//科目查询	SchoolSys/sub/find
export let SubjectList= (params:object)=>{
	return request.postRequest("SchoolSys/sub/find",params)
}

//班级科目查询	SchoolSys/clazz/selectclazzsub
export let ClassSubjectList= (params:object)=>{
	return request.postRequest("SchoolSys/clazz/selectclazzsub",params)
}

//添加班级科目	SchoolSys/clazz/addclazzsub
export let AddClassSubject= (params:object)=>{
	return request.postRequest("SchoolSys/clazz/addclazzsub",params)
}

//课程表根据班级Id查询	SchoolSys/scha/searchByIClazz
export let ClassLesson= (params:object)=>{
	return request.postRequest("SchoolSys/scha/searchByIClazz",params)
}

//添加课程表	SchoolSys/scha/add
export let AddLesson= (params:object)=>{
	return request.postRequest("SchoolSys/scha/add",params)
}



//修改课程表		SchoolSys/scha/update
export let UpdateLesson= (params:object)=>{
	return request.postRequest("SchoolSys/scha/update",params)
}

//修改课程表检查		SchoolSys/scha/check
export let CheckUpdateLesson= (params:object)=>{
	return request.postRequest("SchoolSys/scha/check",params)
}

//根据课程id查询教师		SchoolSys/getTeachersBySubId
export let GetTeacher= (params:object)=>{
	return request.postRequest("SchoolSys/getTeachersBySubId",params)
}